package cn.sunlight.gulimall.ware.service;

import cn.sunlight.gulimall.ware.vo.SkuHasStockVO;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.sunlight.common.utils.PageUtils;
import cn.sunlight.gulimall.ware.entity.WareSkuEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author sunlight
 * @email liugangsin@sina.com
 * @date 2020-12-24 18:13:35
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void addStoke(Long skuId, Long wareId, Integer skuNum);

    List<SkuHasStockVO> getSkusHasStock(List<Long> skuIds);
}

